package com.qyhl.school.school.column.course;


import com.qyhl.webtv.commonlib.entity.school.SchoolCourseListBean;

import java.util.List;

public class SchoolColumnCoursePresenter implements SchoolColumnCourseContract.SchoolColumnCoursePresenter {
    private SchoolColumnCourseContract.SchoolColumnCourseView mView;
    private SchoolColumnCourseModel mModel;

    public SchoolColumnCoursePresenter(SchoolColumnCourseContract.SchoolColumnCourseView mView) {
        this.mView = mView;
        this.mModel = new SchoolColumnCourseModel(this);
    }

    @Override
    public void getList(int schoolId, int lastId, int lastViewCount) {
        mModel.getList(schoolId,lastId,lastViewCount);
    }

    @Override
    public void setList(List<SchoolCourseListBean> beanList, boolean isMore) {
         mView.setList(beanList,isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
      mView.setError(msg,isMore);
    }
}
